<%-- 
    Document   : ExecutionReport
    Created on : 28/11/2010, 10:55:46 PM
    Author     : Rainiero
--%>


<%@page import="Gui.ReportHelper"%>
<%@page import="Proxy.ProxySAFP"%>
<%@page import="ServiceInterface.IFacade"%>
<%@page import="Gui.GuiHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
    String error = "";
    String header = GuiHelper.GetInstance().GetHeader();
    String footer = GuiHelper.GetInstance().GetFooter();

    IFacade facade = new ProxySAFP().getServiceInterface();
    error = ReportHelper.ShowReport("rptExecutionStart", facade.GetReportConnection());
    if(error.equals(""))
    {
        response.setHeader("Pragma", "public");
        response.setHeader("Cache-Control", "max-age=30");
        RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/Reports/rptExecutionStart.pdf");
        dispatcher.forward(request, response);
    }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Reporte de ejecución</title>
        <link rel="stylesheet" type="text/css" href="../Styles/safp.css" />
    </head>
    <body>
        <%= header %>
        <h1>Reporte de ejecución</h1>
        <%= error %>
        <%= footer %>
    </body>
</html>
